/**************************************************
 * 上海美峰数码科技有限公司(http://www.morefuntek.com)
 * 模块名称: PlayerContentProvider
 * 功能描述：
 * 文件名：PlayerContentProvider.java
 **************************************************
 */
package com.morefun.prov;

import java.io.File;

import org.eclipse.jface.viewers.IStructuredContentProvider;
import org.eclipse.jface.viewers.Viewer;

/**
 * 功能描述
 * @author YAOWENHAO
 * @since 2011-11-1 
 * @version 1.0
 */
public class PlayerTableContentProvider implements IStructuredContentProvider{

	/**
	 * override 方法
	 * @see org.eclipse.jface.viewers.IContentProvider#dispose()
	 */
	@Override
	public void dispose() {
		// TODO Auto-generated method stub
		
	}

	/**
	 * override 方法
	 * @see org.eclipse.jface.viewers.IContentProvider#inputChanged(org.eclipse.jface.viewers.Viewer, java.lang.Object, java.lang.Object)
	 */
	@Override
	public void inputChanged(Viewer arg0, Object arg1, Object arg2) {
		// TODO Auto-generated method stub
		
	}

	/**
	 * override 方法
	 * @see org.eclipse.jface.viewers.IStructuredContentProvider#getElements(java.lang.Object)
	 */
	@Override
	public Object[] getElements(Object element) {
		Object[] kids = null;
		kids = ((File) element).listFiles();
		return kids == null ? new Object[0] : kids;
	}

}
